﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace _1._2._2015FullCrud.Models
{
    //all items we will use to defiine a todo
    public class TodoViewModel
    {
        public int Id { get; set; }
        public string Text { get; set; }
        public DateTime DateCreated { get; set; }
        public DateTime DateCompleted { get; set; }
        public bool IsCompleted { get; set; }
    }
    public class TodoIndexViewModel
    {
        //our list for the index page
        public List<TodoViewModel> Todos { get; set; }
    }

    public class CreateTodoViewModel
    {
        //sets the string entered by the used from the page for the todo info all the rest is set by the program
        public string Text { get; set; }
    }

    public class UpdateTodoViewModel
    {
        //gets the info from the user to be set inplace of the old data
        public int Id { get; set; }
        public string Text { get; set; }
        public bool IsCompleted { get; set; }
    }
}


